package com.Test;

public class Bandit {
    private String name;
    private int money = 0;

    public Bandit(String name) {
        this.name = name;
    }

    public void Robbery(People people){

        people.money -= 100;
        this.money += 100;
    }



  public static void main(String[] args) {
    //
      People lisi = new People("李四",200);
      Bandit zhangsan = new Bandit("张三");
      zhangsan.Robbery(lisi);
  }
}
